<?php

class Admin extends CI_Controller {

    function __construct() {
        parent::__construct();
    }

    function index() {
    }
    
    function sitemap() {
        $this->load->library('sitemap');
        // Show the index page of each controller (default is FALSE)
        $this->sitemap->set_option('show_index', true);

        // Exclude all methods from the "Job" controller
        $this->sitemap->ignore('Auth', '*');
        $this->sitemap->ignore('Usuario', array('gettemplate', 'index', 'borrar', 'agregar', 'editar', 'guardar', 'renderrolpass', 'switch_comun', 'captcha'));
        $this->sitemap->ignore('Reserva', array('gettemplate', 'borrar', 'agregar', 'editar', 'guardar', 'switch_comun'));
        // Exclude this controller
        $this->sitemap->ignore('Sitemap', '*');

        // Show the sitemap
        echo '<h1>Sitemap</h1>';
        echo $this->sitemap->generate();
    }

}

?>
